<?php echo '<?xml version="1.0" encoding="utf-8"?>' . "\n";?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
    <title><?=$titulo?></title>
    <link><?=BASE_URL?></link>
    <atom:link href="<?=$feed_url?>" rel="self" type="application/rss+xml" />
    <description><?=$description?></description>
    <language>es-es</language>
    <pubDate><?=date(DATE_RSS, strtotime("now"))?></pubDate>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <lastBuildDate><?=date(DATE_RSS, strtotime("now"))?></lastBuildDate>

<?php foreach ($posts as $post): ?>

<?
$post->texto = str_replace("articulo/imagen/","http://m.masnatacion.com/articulo/imagen/",$post->texto);
?>
    <item>
        <title><?=$post->titulo?></title>
        <link><?=BASE_URL?>articulo/<?=$post->articulo_k;?></link>
        <description><![CDATA[<p><?=word_limiter($post->texto,100)?></p>]]></description>
        <content:encoded><![CDATA[<?=word_limiter($post->texto,100)?>]]></content:encoded>
        <pubDate><?=date(DATE_RSS, strtotime($post->fecha_creacion))?></pubDate>
        <category><?=$post->categoria;?></category>
        <tags><?=$post->etiquetas;?></tags>
        <image><?=BASE_URL.'articulo/imagen/'.$post->articulo_k.'/664x394';?></image>
    </item>    
<?php endforeach;?>
</channel>
</rss>
